<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Test</title>
    <script>
        let el = console.log;
        //是不是,每一个对象都存在原型?
        let obj1 = {
            name:"xaiobudai"
        }
        el(obj1) //存在就能适应
        // el(obj1.hasOwnProperty('name'))

        var obj2 = Object.create(null, {    //孤儿对象
            name: {
                value:'budai'
            }
        })

        el(obj2)   //不存在父级原型 只有一个内部值

    </script>
</head>

<body>
    <h1>Test页面</h1>
</body>

</html>